# -*- coding: utf-8 -*-
# autor: Luís Shou 5601
# data: 7 out 2013
# obs.: aula3
#

d1 = {'Programaocao 1' : 15,
      'Programacao 2 ' : 16,
      'Matematica ' : 12,
      'EDA ' : 13}

d1['Algebra'] = 19

media = 0.0
c = 0
for valor in d1.itervalues():
    media += valor
    c +=1
media /= c

print "media = ", media
for chave, valor in d1.iteritems():
    print chave, valor
